using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace WorkLogSystem.Common
{
    public static class ConnectionString
    {
        /// <summary>
        /// 连接字符串
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public static string ConnectString()
        {
            return "Server=localhost;Database=SimpleCode_System;User Id=sa;Password=1230;";
        }

        /// <summary>
        /// 连接字符串
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public static string ConnectString(string key)
        {
            string ConnectString = "";
            switch (key)
            {
                case "Conn": ConnectString = "Server=.;Database=SimpleCode_System;User Id=sa;Password=1230;"; break;
                case "CRM": ConnectString = "Server=.;Database=SimpleCode_CRM;User Id=sa;Password=1230;"; break;
                default: ConnectString = "Server=.;Database=SimpleCode_System;User Id=sa;Password=1230;"; ; break;
            }
            return ConnectString;
        }

    }
}
